package com.AuthServer.convertor;

import org.springframework.stereotype.Component;

@Component
public class PermissonConverter {

    public Integer convertToJavaData(String value) {
        return switch (value) {
            case "用户" -> 1;
            case "管理员" -> 2;
            default -> null;
        };
    }
}
